package cn.nuc.service.sensorfire.impl;

import cn.nuc.dao.sensorfire.IFireMapper;
import cn.nuc.pojo.sensorfire.Fire;
import cn.nuc.service.sensorfire.IFireService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FireServiceImpl extends ServiceImpl<IFireMapper , Fire> implements IFireService {
    @Override
    public List<Fire> getAllFire() {
        return this.baseMapper.findAllFire();
    }

    @Override
    public List<Fire> getSomeFire(String begin, String end) {
        return this.baseMapper.findListByCondition(begin , end);
    }
}
